package com.redisdemo.job;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * <h3>redisDemo</h3>
 * <p>通用的定时任务</p>
 *
 * @author gdw
 * @since 2024-06-26 14:32:50
 */
public class CommentJob  implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDataMap mergedJobDataMap = context.getMergedJobDataMap();
        String param1 = mergedJobDataMap.getString("param1");
        String param2 = mergedJobDataMap.getString("param2");
        System.out.println("Executing job with parameters: param1=" + param1 + ", param2=" + param2);
    }
}
